package org.firebug.spring.boot.logback.kafka.service;

import org.firebug.spring.boot.logback.kafka.bean.User;
import org.firebug.spring.boot.logback.kafka.dao.UserDAO;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class UserService {
    private static Logger logger = LoggerFactory.getLogger("output");
    @Resource
    private UserDAO userDAO;
    public User queryById(Long id) {
        logger.info("id={}", id);
        return userDAO.queryById(id);
    }
}
